package com.doge.controller.admin;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseParam;
import com.doge.bean.base.BaseRespVo;
import com.doge.service.admin.address.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project2-wechat-mall
 * @description: 会员地址
 * @author: zhu lei
 * @create: 2021-11-30 15:05
 **/
@RequestMapping("/admin/address")
@RestController
public class AddressListController {

    @Autowired
    AddressService addressService;
    @RequestMapping("list")
    public BaseRespVo addressList(Integer userId, String name, BaseParam baseParam) {
        BaseData baseData = addressService.addressList(userId, name, baseParam);
        return BaseRespVo.ok(baseData);
    }
}